home *** CD-ROM | disk | FTP | other *** search
/ PD ROM 1 / PD ROM Volume I - Macintosh Software from BMUG (1988).iso / Electronic Messages / USEnet Digests / USEnet Vol. 4 / USEnet 4.13 < prev    next >
Encoding:
Text File  |  1988-04-08  |  30.4 KB  |  817 lines  |  [TEXT/ttxt]

  1.  1-Feb-88 10:02:52-PST,31860;000000000000
  2. Return-Path: <usenet-mac-request@RELAY.CS.NET>
  3. Received: from RELAY.CS.NET by SUMEX-AIM.Stanford.EDU with TCP; Mon, 1 Feb 88 10:01:50 PST
  4. Received: from relay2.cs.net by RELAY.CS.NET id ac23115; 1 Feb 88 10:40 EST
  5. Received: from relay.cs.net by RELAY.CS.NET id aa24718; 1 Feb 88 10:25 EST
  6. Received: from sdr.slb.com by RELAY.CS.NET id aa24701; 1 Feb 88 10:22 EST
  7. Date: Mon, 1 Feb 88 09:32 EDT
  8. From: Jeffrey Shulman <SHULMAN@sdr.slb.com>
  9. Subject: Usenet Mac Digest V4 #13
  10. To: usenet-mac@RELAY.CS.NET, PIERCE%HDS@sdr.slb.com
  11. X-VMS-To: in%"usenet-mac@relay.cs.net",in%"PIERCE%HDS@SDR.SLB.COM"
  12.  
  13. Date: Mon 1 Feb 88 09:32:36-GMT
  14. From: Jeff Shulman <SHULMAN@SDR>
  15. Subject: Usenet Mac Digest V4 #13
  16. To: Usenet-List: ;
  17. Message-ID: <570706356.0.SHULMAN@SDR>
  18. Mail-System-Version: <VAX-MM(218)+TOPSLIB(129)@SDR>
  19.  
  20. Usenet Mac Digest     Sunday, January 31, 1988       Volume 4 : Issue 13 
  21.  
  22. Today's Topics:
  23.      Menus on the title bar.
  24.      JClock vs. MenuClock
  25.      coral allegro common lisp
  26.      3rd party 800K drives
  27.      Merriam-Webster Thesaurus and Multifinder
  28.      NuBus single-chip interface
  29.      Re: TOPS info
  30.      Color Copybits Question
  31.      Math processing
  32.      Re: Macintosh Prolog Recommendations
  33.      List Magager dividers
  34.      Asynchronous SysBeep() on Mac II
  35.      Re: Sorting resources and a question about the list manager
  36.      Re: Are Desktop files a good idea?
  37.      Re: Re: C vs. Pascal for the mac, vs C for MSDOS
  38.      Re: (LSC) Deep Dark Secrets Wanted!
  39.      Re: LaserWriter IISC spec.'s...
  40.      Re: Menus on the title bar.
  41.      Re: Macintosh Prolog Recommendations (2 messages)
  42.      Questions about File/List Managers
  43.      SAS/GRAPH on Mac
  44.  
  45. ---------------------------------------------------------------------- 
  46.  
  47. From: buzz@phoenix.Princeton.EDU (Mahboud Zabetian)
  48. Subject: Menus on the title bar.
  49. Date: 22 Jan 88 01:00:43 GMT
  50. Organization: Advanced Technology, Princeton University
  51.  
  52. Does anyone know what the best way is to make a popup menu when you
  53. option-click on the title bar of a window?  I seem to recall having seen
  54. it before.
  55.  
  56. One way to do that is to fool the mac into thinking that the click is in
  57. the menu bar, and having the menu manager handle the event.  But I don't
  58. want to  do it that way since each window will have its own unique
  59. menu.(plus the standard ones in the menu bar).
  60.  
  61. Any help will be appreciated.
  62. -- 
  63. Mahboud Zabetian                buzz@phoenix.princeton.edu
  64. 183 Little Hall                     (609) 520-1271
  65. Princeton University, Princeton, NJ 08544        (609) 734-7760
  66. ****** Anyone need a soon-to-graduate hardware/software engineer? ********
  67.  
  68.  
  69. ------------------------------
  70.  
  71. From: buzz@phoenix.Princeton.EDU (Mahboud Zabetian)
  72. Subject: JClock vs. MenuClock
  73. Date: 22 Jan 88 01:08:27 GMT
  74. Organization: Advanced Technology, Princeton University
  75.  
  76. I had used JClock for over a year and had never had anyproblems with it,
  77. until MultiFinder came out and JClock would write over MF's small icon.
  78.  
  79. Now I use Menu clock which just displays the hour and minutes(as opposed
  80. to JClock's Hour minute and seconds), but I am not satisfied.
  81.  
  82. With JClock, you knew the time no matter what you were doing.  With
  83. MenuClock the clock stops during certain operations such as mousedown
  84. and downloads.  I don't mean that it would lose time, but that it would
  85. remain unchanged till said operations ended and then would display the
  86. correct time again.
  87.  
  88. With JClock, when that happened, it was safe to assume that the system
  89. had crashed, but with menuclock, you never know.
  90.  
  91. Anybody know of a MF compatible JClock?  Thank you. 
  92.  
  93. P.S.  Also, you could get rid of JClock if you clicked on it, but you
  94. can't with MenuClock.
  95. -- 
  96. Mahboud Zabetian                buzz@phoenix.princeton.edu
  97. 183 Little Hall                     (609) 520-1271
  98. Princeton University, Princeton, NJ 08544        (609) 734-7760
  99. ****** Anyone need a soon-to-graduate hardware/software engineer? ********
  100.  
  101.  
  102. ------------------------------
  103.  
  104. From: mailnews@allegra.UUCP (Henry Kautz's mailnews program)
  105. Subject: coral allegro common lisp
  106. Date: 21 Jan 88 19:35:12 GMT
  107. Organization: AT&T Bell Laboratories, Murray Hill
  108.  
  109. Coral Allegro Common Lisp appears pretty nifty, but the dialog designer
  110. can be hazardous to your Mac II's health.  Using with a SuperMac
  111. Spectrum color board, strange things happened -- random shifts in color.
  112.  Then, POW, the system crashed.  Now it won't boot.  Not from a floppy,
  113. not from the hard disk, period.  No control-shift-etc magic seems to
  114. help.  Maybe parameter RAM is screwed up, but since it won't even boot
  115. from a floppy (it just turns itself off after about 1 second) there is
  116. no way to do the command-shift-option-control panel trick.  
  117.  
  118. So, back to the dealer, who will undoubtably insist we buy a new
  119. motherboard.  Any other suggestions?
  120. -- 
  121. ---- Henry Kautz
  122. :uucp:    allegra!kautz        
  123. :arpa: or :csnet: kautz@allegra.att.com
  124. :old style csnet: kautz%allegra@btl.csnet
  125. :mail:  AT&T Bell Laboratories    
  126.     Room 3C-402A
  127.     600 Mountain Ave.    
  128.     Murray Hill, N.J. 07974    
  129. :office phone: (201) 582-2815    
  130.  
  131.  
  132. ------------------------------
  133.  
  134. From: waldman@endor.harvard.edu (benjamin Waldman)
  135. Subject: 3rd party 800K drives
  136. Date: 22 Jan 88 04:14:09 GMT
  137. Organization: Aiken Computation Lab Harvard, Cambridge, MA
  138.  
  139. A friend of mine wants to buy and 800K external drive, and he's seen
  140. some 3rd party ones that are cheaper than the $300 we have to pay for
  141. Apple drives (university consortium prices).
  142.  
  143. Since I don't know much about them, I though I'd ask for advice. He's
  144. seen 2 drives - 1)Ehman 800 K external drive, by Ehman engineering
  145. ($190) and 2) Phaser 800, by Warp 9 Engineering ($180)
  146.  
  147. Does anyone know anything about these drives, or can anyone suggest any
  148. other 3rd party drives, and/or a good place to buy one from (Does
  149. MacConnection sell hardware too)?
  150. -- 
  151. Thanks in advance,
  152. Ben Waldman
  153. waldman@endor.harvard.edu
  154.  
  155.  
  156. ------------------------------
  157.  
  158. From: kck@wdl1.UUCP (Karl C. Kelley)
  159. Subject: Merriam-Webster Thesaurus and Multifinder
  160. Date: 21 Jan 88 17:46:45 GMT
  161.  
  162. Word Thesaurus published by Target Software, version 1.0v of 2/13/87 is
  163. not functioning under Multifinder.  Gives an error message indicating
  164. you have to use it under Word, but in fact even if you are in Word you
  165. get the same message.  The solution was to go to the ordinary finder.
  166.  
  167. Response I got when contacting Target Software was that they offer tech
  168. support of the existing product, but that the creator is no longer
  169. updating this program.  I'm a little ambivalent about whether that is
  170. bad or good. The product is "reasonable" for an inexpensive add-on, but
  171. its vocabulary is somewhat limited.
  172.  
  173. I would be interested to see if anyone knows of the current plans of the
  174. creators, Deneba Systems, Inc.  They are listed as the copyright holder
  175. in the "About Thesaurus" menu.
  176.  
  177.  
  178. ------------------------------
  179.  
  180. From: lad@eplrx7.UUCP (Lawrence A. Dziegielewski)
  181. Subject: NuBus single-chip interface
  182. Date: 21 Jan 88 13:38:33 GMT
  183. Organization: E.I. DuPont Co. Engineering Physics Lab
  184.  
  185.  
  186. Does anyone have the name,  address,  and phone number for the company 
  187. that was recently written up in MacWeek that has the single-chip NuBus
  188. interface?  Please reply by email.  Thanks in advance for the info.
  189. -- 
  190.         Lawrence A. Dziegielewski       |       E.I. Dupont Co.
  191.         {uunet!dgis!psuvax1}!eplrx7!lad |       Engineering Physics Lab
  192.         Cash-We-Serve 76127,104         |       Wilmington, Delaware 19898
  193.         MABELL:  (302) 695-1311         |       Mail Stop: E357-318
  194.  
  195.  
  196. ------------------------------
  197.  
  198. From: cramer@optilink.UUCP (Clayton Cramer)
  199. Subject: Re: TOPS info
  200. Date: 21 Jan 88 16:31:53 GMT
  201. Organization: Optilink Corporation, Petaluma, CA
  202.  
  203. Our system here is:
  204.  
  205.     Sun 3/280 file server
  206.     many Sun 3/50s
  207.     one Sun 3/60
  208.     a dozen PCs
  209.     a dozen or so Macs
  210.     an Apple LaserWriter Plus
  211.     a Kinetics FastPath box bridging AppleTalk net to Ethernet
  212.  
  213. The LaserWriter Plus and Macs are on Appletalk network using TOPS to
  214. access the Sun 3/280 file server.  The PCs are on Ethernet, using Sun's
  215. PC-NFS to talk to the Sun 3/280, which also provides the networked
  216. printer support.
  217.  
  218. We have everything working pretty well now, though our print spooler
  219. will occasionally fail with an very non-descriptive error message, and
  220. require human intervention.  I would strongly encourage anyone
  221. considering a combination like this to reconsider why they are taking
  222. such an approach.
  223.  
  224. Our particular Kinetics FastPath occasionally fails in a manner that
  225. requires us to reinitialize its software -- yet passes diagnostics. When
  226. this happens, the AppleTalk part stops talking to Ethernet.
  227.  
  228. There are quirks of trying to use PC software to talk to the LaserWriter
  229. over this torturous path, and it appears that the combination of TOPS
  230. and PC-NFS create problems that preclude using the solutions you would
  231. use for TOPS or PC-NFS alone.
  232.  
  233. The Appletalk part of our setup works fine -- the PC-NFS part works sort
  234. of OK (though you don't want to use the DOS APPEND command if you are
  235. using PC-NFS), but the combination of all these systems has taken up a
  236. lot of time to get working.  Even now, most Mac users work on hard disks
  237. instead of trusting the network to stay up long enough to complete
  238. editing a document.  (That includes me -- and I'm responsible for 
  239. maintaining it).
  240.  
  241. Clayton E. Cramer
  242.  
  243.  
  244. ------------------------------
  245.  
  246. From: milo@ndmath.UUCP (Greg Corson)
  247. Subject: Color Copybits Question
  248. Date: 21 Jan 88 22:01:59 GMT
  249. Organization: Math. Dept., Univ. of Notre Dame
  250.  
  251. If you have a pixmap that is 1 bit deep and copy it to another pixmap
  252. which is half the size and several bits deep will color copybits average
  253. groups of four pixels in the source image to produce one of four grey
  254. scales in the destination?  Here's an example with a 2x2 source array:
  255.  
  256. Source =  1 1
  257.           0 1
  258.  
  259. copied to a 1x1 pixmap will you get a black pixel or a 75% grey one?
  260. -- 
  261. Greg Corson
  262. 19141 Summers Drive
  263. South Bend, IN 46637
  264. (219) 277-5306 (weekdays till 6 PM eastern)
  265. {pur-ee,rutgers,uunet}!iuvax!ndmath!milo
  266.  
  267.  
  268.  
  269. ------------------------------
  270.  
  271. From: ali@rocky.STANFORD.EDU (Ali Ozer)
  272. Subject: Math processing
  273. Date: 21 Jan 88 21:42:09 GMT
  274. Organization: Stanford University Computer Science Department
  275.  
  276. --- Seeing all these messages about equation formatters, etc, I thought
  277. I'd mention a program that I hope will soon appear on your dealer's
  278. shelves. The program is "Milo," written by Ron Avitzur, a physics
  279. student at Stanford. He describes the program as a "math processor" ---
  280. just like a "word processor," except it processes equations.
  281.  
  282. The program does a lot --- It solves equations,  simplifies expressions,
  283. reduces terms, processes matrices, evaluates summations and products,
  284. etc... The goal of the program is to turn the Mac into a scratch pad for
  285. math work --- Normally you can sit in front of your favorite word
  286. processor and just type, even if you do not have a clear idea of what
  287. you want to write. This is easily possible because most word processors
  288. are easy to use and do not interfere with the thinking process. Milo
  289. attempts to do that for math processing --- To give you a environment
  290. where you can type/solve/simply equations, without having to worry about
  291. formatting the equations as you type. 
  292.  
  293. The program provides many menu options, with keyboard equivalents for
  294. all. It'll probably take some time for beginners to get used to, but,
  295. the program is extremely fast once you're used to it. (Ron can type up a
  296. page full of physics equations, all beautifully solved, in under a
  297. minute...) This is very important --- Most easy-to-use programs do not
  298. get faster as you get more accustomed to them... Milo might prove a bit
  299. more difficult to get started in than most Mac programs (mainly due to
  300. the dozens of options), but it does get much faster as you get used to
  301. it...
  302.  
  303. Milo also provides graphing capabilities, with any level of zooming into
  304. any area of the graph --- this allows you to solve for roots of
  305. equations visually and also allows you to check results obtained through
  306. other methods. 
  307.  
  308. And, of course, you can include text (using multiple fonts/styles) in
  309. your document, as well as all the equations, solutions, and the graphs.
  310.  
  311. In my opinion, the program is perfect for students doing problem sets
  312. for science and engineering classes. The program will not do your
  313. problem sets for you, but instead, let you get through those tedious and
  314. messy equations without losing terms or minus signs. And it's ease of
  315. use allows you to spend almost no extra time  on problems of
  316. typesetting, formatting, etc.
  317.  
  318. I think TeX is still a better choice for those doing papers, articles,
  319. or dissertations --- mainly because TeX provides true typesetting with
  320. enough power to satisfy any sort of document processing. But, TeX
  321. doesn't solve equations, just typesets them, so even with TeX, there's
  322. plenty of use for Milo. 
  323.  
  324. The program is available from Sumex, I believe --- in <info-mac>. It's a
  325. demo version that pretty much lets you do most everything, and it also
  326. provides info on how to get in touch with Ron, the author.
  327.  
  328. Ron took off considerable time from Stanford to work on Milo, and is
  329. currently in the final stages of writing documentation and sorting
  330. through his options for distributing the program. With luck, you'll see
  331. Milo on the dealer shelves within a few months. If you want to contact
  332. him through email (and I think he loves getting mail about Milo!), try
  333. sending mail to a.avitzur@lear.stanford.edu. 
  334.  
  335. Finally I should mention that I am not associated with Milo in any way,
  336. except that I've seen it and am impressed by it. (I haven't even used
  337. the program for an extended period of time --- mainly because I don't
  338. use Macs... 8-) But, if you have any use for equation processing, and
  339. you use a Macintosh, definitely get your hands on the demo version and
  340. try it out. 
  341.  
  342. Ali Ozer, ali@rocky.stanford.edu
  343.  
  344.  
  345. ------------------------------
  346.  
  347. From: newton@cit-vax.Caltech.Edu (Mike Newton)
  348. Subject: Re: Macintosh Prolog Recommendations
  349. Date: 22 Jan 88 05:31:32 GMT
  350. Organization: California Institute of Technology
  351.  
  352.  
  353. Some comments regarding the recent inquiry regarding Prolog for the Mac:
  354.  
  355. First, despite the posters comments, CProlog is NOT in the public
  356. domain. Though the academic license is real cheap, it is needed.  I
  357. believe an industry license is big $$.  (Note: I maintain an 'alternate'
  358. version of CProlog that compiles under more systems, like UTS,  than the
  359. original.) I have NOT yet tried to compile it under Mac OS (please dont
  360. ask), though it seems to work under some other (un-named) OS.
  361.  
  362. I dont know if Quintus or BIM have a Mac version yet, of if they ever
  363. will.  I'm pretty sure that at least BIM was thinking of it.
  364.  
  365. If Turbo Prolog for the Mac ever comes out _DONT BUY IT_.  It is trash.
  366.  
  367. A commercial Mac Prolog that I highly recommend is by ALS.  I believe
  368. they are about ready to ship the Mac version.  The PC version has been
  369. out a while.  (Note: i have ties to ALS, so this is biased.  However, it
  370. really seems nice!).  Their phone number is: 315 471 3900.
  371.  
  372. - mike
  373. -- 
  374. newton@csvax.caltech.edu    {ucbvax!cithep,amdahl}!cit-vax!newton
  375. Caltech 256-80            818-356-6771 (afternoons,nights)
  376. Pasadena CA 91125        Beach Bums Anonymous, Pasadena President
  377.  
  378.     "Reality is a lie that hasn't been found out yet..."
  379.  
  380.  
  381. ------------------------------
  382.  
  383. From: dudek@utai.UUCP (Gregory Dudek)
  384. Subject: List Magager dividers
  385. Date: 21 Jan 88 15:42:12 GMT
  386. Organization: CSRI, University of Toronto
  387.  
  388. While people are discussing the List manager, is there any easy way to
  389. get dividers between list items rather that defining a custom list?  I
  390. would have though lists with lines between items would be an obvious
  391. thing to include as an option. My apologies if I'm missing something
  392. incredibly obvious.
  393.  
  394.   If it does require a custom LDEF, and anybody has such a beast
  395. floating around (in source form), please feel free let me see it. 
  396. Thanks, 
  397.   Greg Dudek
  398. -- 
  399. Dept. of Computer Science (vision group)    University of Toronto
  400. Reasonable mailers:  dudek@ai.toronto.edu
  401. Other UUCP: {uunet,ihnp4,decvax,linus,pyramid,
  402.         dalcs,watmath,garfield,ubc-vision,calgary}!utai!dudek
  403. ARPA: user%ai.toronto.edu@relay.cs.net
  404. DELPHI: GDUDEK
  405.  
  406.  
  407. ------------------------------
  408.  
  409. From: dplatt@coherent.uucp (Dave Platt)
  410. Subject: Asynchronous SysBeep() on Mac II
  411. Date: 22 Jan 88 06:41:33 GMT
  412. Organization: Coherent Thought Inc., Palo Alto CA
  413.  
  414. I've heard a rumor that someone has written a little INIT which will
  415. convert the SysBeep() call on the Mac II from a synchronous call to the
  416. Sound Manager into an asynchronous call, so that the II doesn't lock up
  417. while the chosen sound is playing.  Can anybody out there point me to a
  418. place where such an INIT (or any system modification of similar effect)
  419. can be found, or [if you've got it] perhaps mail me a BinHex?
  420.  
  421. advTHANKSance!
  422.  
  423. -- 
  424.  
  425. Dave Platt
  426.   UUCP:    ...!{ames,sun,uunet}!coherent!dplatt
  427.   Internet: coherent!dplatt@ames.arpa, ...@sun.com, ...@uunet.uu.net
  428.  
  429.  
  430. ------------------------------
  431.  
  432. From: mms@gpu.utcs.toronto.edu (John J. Chew III)
  433. Subject: Re: Sorting resources and a question about the list manager
  434. Date: 22 Jan 88 06:43:56 GMT
  435. Organization: The Poslfit Committee
  436.  
  437. A nicer way to sort things as you put them into a list is to use the
  438. LSearch() function:
  439.  
  440.   /* for each cell you want to add */
  441.   theCell.h=theCell.v=0;
  442.   LSearch(dataPtr, dataLen, compareProc, &theCell, 1);
  443.   LAddRow(1, theCell.v, 1);
  444.   LSetCell(dataPtr, dataLen, theCell.1);
  445.  
  446. ... where compareProc for a simple alpha sort would be:
  447.  
  448. pascal int compareProc(ap, bp, al, bl) Byte *ap, *bp; int al, bl; {
  449.   return IUMagString(ap, bp, al, bl)<=0;
  450.   }
  451.  
  452. However, to answer the original question of how to sort resources, the
  453. best way is to sort them before you create them and to create them in
  454. sorted order.  The second best way is to decide what order they should
  455. be in, create a new resource fork and create copies of them in sorted
  456. order there.  If you are determined to sort existing copies of
  457. resources, read the caveat in IM IV-16 and then:
  458.  
  459.   - obtain handles to all the resources to be sorted
  460.   - call RsrcMapEntry on each to get the resource reference offset
  461.   - sort the resource references (12 bytes located at the
  462.     above-obtained offsets from TopMapHndl, assuming your
  463.     resources are in the most-recently opened resource fork,
  464.     which they had better be)
  465.   - call ChangedResource() on one of your resource handles.
  466.  
  467. jjc
  468. -- 
  469. john j. chew (v3.0)                       poslfit@gpu.utcs.toronto.edu
  470. +1 416 463 5403 (300/1200 bps)            poslfit@utorgpu.bitnet
  471. {cbosgd,decvax,mnetor,utai,utcsri,{allegra,linus}!utzoo}!utgpu!poslfit
  472. "Script-G for open, sub-delta for durchschnitt"
  473.  
  474.  
  475. ------------------------------
  476.  
  477. From: martin@home.csc.ti.com (Steven Martin)
  478. Subject: Re: Are Desktop files a good idea?
  479. Date: 22 Jan 88 01:18:01 GMT
  480. Organization: TI Computer Science Center, Dallas
  481.  
  482. My solution is to "open" the trash can.  You then can resize its window
  483. and move it to the lower right corner (or anywhere else). Steve Martin  
  484.          USENET: {ctvax,im4u,texsun,rice}!ti-csl!martin
  485.                         PHONE: (214)-995-5919, 404-1061 If you think of
  486. something, it exists somewhere.
  487.  
  488.  
  489. ------------------------------
  490.  
  491. From: tedj@hpcilzb.HP.COM (Ted Johnson)
  492. Subject: Re: Re: C vs. Pascal for the mac, vs C for MSDOS
  493. Date: 20 Jan 88 16:52:36 GMT
  494. Organization: HP Design Tech Center - Santa Clara, CA
  495.  
  496.  
  497. I talked to a THINK representative at MacWorld last Sat. about a
  498. debugger for LSC and he said:
  499.  
  500.     (1)he couldn't give me a date for when the debugger
  501.            would be out, but it would definitely be "before
  502.            it gets cold again (in Massachusetts)".
  503.  
  504.     (2)the debugger will be in LSC 3.0.  This will be a
  505.            MAJOR upgrade, so they will probably charge for
  506.            it.  He couldn't give me any $ estimates though.
  507.  
  508.     (3)they're trying to make the debugger in LSC look
  509.            similiar to the one in LSP.  From what I've heard
  510.            of LSP, this seems to be a good idea.
  511.  
  512.  
  513.  
  514.     -Ted
  515.  
  516.  
  517. ------------------------------
  518.  
  519. From: steele@unc.cs.unc.edu (Oliver Steele)
  520. Subject: Re: (LSC) Deep Dark Secrets Wanted!
  521. Date: 22 Jan 88 02:44:33 GMT
  522. Organization: University Of North Carolina, Chapel Hill
  523.  
  524. tedj@hpcilzb.HP.COM (Ted Johnson) writes:
  525. >
  526. >Would someone please share the DEEP DARK programming secrets on how to:
  527. >    
  528. >    (1)black out the ENTIRE screen (including JCLOCK)?  I have seen several
  529. >           screen savers that do this...  What is the magical ROM routine
  530. >           that I have to call?
  531.  
  532. There are experts on this on the net, but (deep breath) here goes:
  533.     GrafPort myPort;
  534.     OpenPort(&myPort);    /*does a SetPort too*/
  535.     EraseRect(&myPort.portRect);
  536.  
  537. This is OK for a stand-alone, MultiFinder-animous application.  If you
  538. want something that will trigger update events when it goes away, try
  539.     Rect bounds;
  540.     bounds = WMgrPort->portRect;
  541.     myWindow = NewWindow(0,&bounds,"\pI may appear on the top screen",
  542.         false,0,-1,false,0);
  543.     ShowWindow(myWindow);
  544.     SetPort(myWindow);
  545.     RectRgn(myWindow.port.visRgn, &bounds);
  546.     EraseRect(&bounds);
  547.     ...
  548.     RectRgn(((WindowPeek)myWindow).strucRgn, &bounds);
  549.     DisposeWindow(myWindow);
  550.     DrawMenuBar();
  551.     /* or something like this.  I'm not at home, so I can't
  552.        try this out */
  553.  
  554. Remember that if you do some drawing after you black out the screen, you
  555. need to erase the four corners yourself.
  556.  
  557. Neither of these keeps JCLOCK from doing its thing.  JCLOCK is run off
  558. of the VBL interrupt, and doesn't write into a window, so you need to
  559.   o Disable VBL interrupts.  Nasty.
  560.   o Change ScreenBits to a buffer area.  Nasty.
  561.   o Flip to the alternate screen buffer.  Only works on a Plus and
  562. earlier.
  563.   o Change all the colors to black.  Only works on a II (or later? :-)
  564.  
  565. >    (2)make a DA live forever (i.e., remain active across launching
  566. >           different applications from the non-multi Finder), unless
  567. >           you explicitly close it by clicking on it's close box.
  568. >       I assume this means patching one or more of the ROM routines....   
  569.  
  570. Set the DA up to launch a VBL task.  I think da-insect at sumex has C
  571. source for this.
  572.  
  573. >    (3)Write an INIT?
  574.  
  575.     main(){SysBeep(7);} Set the code type to 'INIT', any number.  Build a
  576. file called Beeper.  User ResEdit or FileMaster or some such to change
  577. the type of Beeper to 'INIT'.  Put Beeper in your System Folder. Set
  578. your sound level to something besides 0.  Reboot.  You get the idea.
  579.  
  580. "The interrupt system, memory manager, and ROM-based I/O drivers have
  581. already been initialized by the ROM boot code.  The boot code
  582. initializes the Event Manager, the Font Manager, the Resource Manager,
  583. and the file system.  (Althought the toolbox is initialized at this
  584. point, MacsBug does not use the Toolbox.)"  This is from the docs for
  585. MacsBug, and tells the state of the world when MacsBug is loaded.  Since
  586. INITs are loaded at about the same time, you're probably safe assuming
  587. you have use of the above managers from an INIT.  Just remember not to
  588. use any A5-relative locations, such as thePort (in InitGraf(&thePort)),
  589. but I think the LSC documentation talks about this.
  590. -- 
  591. ------------------------------------------------------------------------------
  592. Oliver Steele                  ...!{decvax,ihnp4}!mcnc!unc!steele
  593.                                steele@cs.unc.edu
  594.  
  595. "What is L-marked?  Theta-marked.  I mean, the mind
  596.  boggles at the idea of a VP being theta-marked!"    -- Gary Hendrick
  597.  
  598.  
  599. ------------------------------
  600.  
  601. From: olson@endor.harvard.edu (Eric K. Olson)
  602. Subject: Re: LaserWriter IISC spec.'s...
  603. Date: 22 Jan 88 18:01:53 GMT
  604. Organization: Lexington Software Design
  605.  
  606. The press release I read implied that the LWIISC did the drawing in the 
  607. Mac and downloaded the page bitmap to the LWIISC.  The SCSI port was
  608. touted as keeping the throughput reasonable even though the LWIISC
  609. didn't have any onboard processing.
  610.  
  611. Regardless of how they are doing that, I have a different question:  Is
  612. the LWIISC capable of printing bitmaps greater than 1 bit deep
  613. [PixMaps]?  I know that the GCC PLP is treated as a 1-bit deep grafport,
  614. and so it cuts off multi-bit images at 50% gray and prints that [the
  615. same thing you'd get if you looked at the PixMap with the display set to
  616. 2 gray levels].  The LW and LW+ do the same, but you can get around it
  617. by using the PostScript "Image" operator [in Encapsulated Postscript if
  618. you need transferability to other applications].
  619.  
  620. Since the printer engine is inherently a 1-bit device, the LWIISC would
  621. have to dither the image (like PS image operator does) to get it to
  622. print.
  623.  
  624. BTW, so that I can handle all the various cases correctly, how do I tell
  625. what KIND of printer I am outputting to [if Imagewriter, I have to
  626. dither by myself, if LW or LW+, I use PS "image" operator, if GCC PLP, I
  627. dither, if LWIISC, I either dither or print a PICT].  Anybody know?
  628.  
  629. Thanks!
  630.  
  631. -Eric
  632. -- 
  633. Eric K. Olson     olson@endor.harvard.edu     harvard!endor!olson     D0760
  634.    (Name)                (ArpaNet)                 (UseNet)        (AppleLink)
  635.  
  636.  
  637. ------------------------------
  638.  
  639. From: dwb@apple.UUCP (David W. Berry)
  640. Subject: Re: Menus on the title bar.
  641. Date: 22 Jan 88 20:05:07 GMT
  642. Organization: Apple Computer Inc., Cupertino, USA
  643.  
  644.     Presuming your an application and not a desk accessory you should have
  645. something like the following:
  646.  
  647.     switch(event.what)
  648.     {
  649.     ....
  650.     case mouseDown:
  651.         switch(FindWindow(&event.where, &window))
  652.         {
  653.         ...
  654.         case    inDrag:
  655.  
  656. Change what normally comes after inDrag, to test the modifiers bits and
  657. call PopUpMenu (a new trap, test for it's existence as in some tech note
  658. or other) if the option key is down, otherwise handle inDrag as normal.
  659.  
  660.     Remember that option-click in the title bar isn't something defined by
  661. the UI guidelines, so you will have to prominently document it (ie.,
  662. don't bury it in the manual, nobody reads it anyway) or people won't
  663. know whatever feature you implement that way exists.
  664.  
  665.     If you're a DA it gets a lot harder because the system handles the
  666. clicks in your drag region (ie., the title bar)
  667. -- 
  668.     David W. Berry
  669.     dwb@well.uucp                   dwb@Delphi
  670.     dwb@apple.com                   973-5168@408.MaBell
  671. Disclaimer: Apple doesn't even know I have an opinion and certainly
  672.     wouldn't want if they did.
  673.  
  674.  
  675. ------------------------------
  676.  
  677. From: dwb@apple.UUCP (David W. Berry)
  678. Subject: Re: Macintosh Prolog Recommendations
  679. Date: 22 Jan 88 20:16:14 GMT
  680. Organization: Apple Computer Inc., Cupertino, USA
  681.  
  682.     I just talked to some folks at Quintus and "it's not on the schedule" 
  683. It would, however, probably be simple to talk them into doing a port to
  684. A/UX, providing you wanted to pay the n thousand dollar price they ask.
  685. -- 
  686.     David W. Berry
  687.     dwb@well.uucp                   dwb@Delphi
  688.     dwb@apple.com                   973-5168@408.MaBell
  689. Disclaimer: Apple doesn't even know I have an opinion and certainly
  690.     wouldn't want if they did.
  691.  
  692.  
  693. ------------------------------
  694.  
  695. From: deering@spar.SPAR.SLB.COM (Michael Deering)
  696. Subject: Re: Macintosh Prolog Recommendations
  697. Date: 22 Jan 88 21:16:44 GMT
  698. Organization: SPAR - Schlumberger Palo Alto Research
  699.  
  700. Other MAC-II prologs to consider include LPA macprolog, and AAIS prolog
  701. (Advanced AI Systems).  Many large programs run in AAIS prolog on a MAC
  702. II the same speed as Quintus compiled on a SUN-3/50, while still
  703. maintaining a complete debugging environment.  I believe LPA has full
  704. toolbox access, AAIS certainly does.  Both of these prologs have been
  705. shiping commercially for over a year.  I not yet seen a non-beta version
  706. of ALS prolog, but I have not looked recently (2 months). (Note: I have
  707. ties to AAIS, so this biased.  However, it is really nice!)
  708.  
  709. - MD
  710.  
  711.  
  712. ------------------------------
  713.  
  714. From: andrew@comp.vuw.ac.nz (Andrew Vignaux)
  715. Subject: Questions about File/List Managers
  716. Date: 18 Jan 88 22:54:56 GMT
  717. Organization: Comp Sci, Victoria Univ, Wellington, New Zealand
  718.  
  719. I have a few questions about the "File Manager" and "List Manager"
  720. sections of IM4.
  721.  
  722.             File Manager
  723.  
  724. IM4 says that the directory ID of the root of a volume has dirID==2 with
  725. the name of the directory the same as the name of the volume.  However,
  726. when playing around, I found the parent dirID of the root seems to have
  727. a dirID==1.  This means I can write a "climb_directory_tree" routine
  728. like:
  729.  
  730.     if (/* I am running HFS */)
  731.     dir = 0L;
  732.     while (dir != 1L) {
  733.         di.ioNamePtr = (StringPtr) name;
  734.         di.ioVRefNum = vol;
  735.         di.ioFDirIndex = -1;
  736.         di.ioDrDirID = dir;
  737.  
  738.         PBGetCatInfo (&di, False);
  739.  
  740.         /* do something -- like prepending the name onto a path */
  741.  
  742.         dir = di.ioDrParID;
  743.     }
  744.  
  745. where "vol" can be a volume ref number or a WD num (e.g.
  746. sf_reply.vRefNum). This means I don't need to do a separate HGetVInfo or
  747. muck around with special cases with VRefNums.
  748.  
  749. Is the dirID==1 mentioned in IM4-"File Manager"?  Can I use it safely if
  750. it is not mentioned (I am only using it as the stopping condition)?  Is
  751. there anything wrong with using GetCatInfo() like this?
  752.  
  753.  
  754.             List Manager
  755.  
  756. I have had a few problems convincing the list manager to do what I want.
  757.  
  758. I would like to set up a window (with grow, zoom, go-away) which
  759. contains a single (1 column wide) list -- I do not want a horizontal
  760. scroll bar.  Is there some marvelous combination of flags (what does
  761. hasGrow do?) that I can pass to NewList(), to give me the vertical
  762. scroll bar with the list either
  763.     * using the horizontal scroll bar area (preferred!)
  764.     * not using the horizontal scroll bar area and NOT UPDATING IT!
  765.  
  766. Secondly, when I grow the window, the List Manager trys to scroll the
  767. list so that no undefined cells are shown.  However because the update
  768. is redrawn inside BeginUpdate() / EndUpdate() the screen is not redrawn
  769. correctly.
  770.  
  771. Finally, I am passing a string, which is stored in the cell's data, to
  772. DrawString() inside my LDEF.  Do I need to lock the "cells" handle or
  773. will DrawString() invalidate its argument by moving or purging handles.
  774. -- 
  775.     - Andrew
  776.  
  777. I've certainly never come across any irreversible mathematics involving sofas.
  778. ------------------------------------------------------------------------------
  779. Domain address: andrew@comp.vuw.ac.nz   Path address: ...!uunet!vuwcomp!andrew
  780.  
  781.  
  782. ------------------------------
  783.  
  784. From: mpip@ur-tut.UUCP (Robert Annechiarico)
  785. Subject: SAS/GRAPH on Mac
  786. Date: 22 Jan 88 22:35:36 GMT
  787. Organization: Univ. of Rochester Computing Center
  788.  
  789. I'm looking for information on capturing SAS/GRAPH output on the Mac,
  790. manipulating it slightly (mostly add or change text, and occasionally
  791. reposition some of the elements of the graph), and outputting it to the
  792. LaserWriter.  A dream would be to output it to an HP7475.
  793.  
  794. Is anyone out there doing such a thing?  It's tempting because SAS/GRAPH
  795. gives me 90% of what I want in a typical graph in about 5 minutes; the
  796. remaining 10% can take hours of work.
  797.  
  798. I think that the route might be to log into the SAS machine with
  799. VersaTerm Pro, copy the graph, and paste it into MacDraw or Cricket
  800. Draw.  But I'd like to know before I buy the software...
  801.  
  802. Any experience with this?  Or ideas?  Suggestions for a better approach?
  803.  
  804. Thanks.
  805. -- 
  806. Eric Carleen
  807. University of Rochester Medical Center
  808. (716)-275-5391
  809. Bitnet: heartedc@uorhbv
  810. UUCP: seismo!rochester!ur-tut!mpip
  811.  
  812. ------------------------------
  813.  
  814. End of Usenet Mac Digest
  815. ************************
  816. -------
  817.